package yxy.game.pm2.chat.module;

import yxy.game.pm2.bean.area.ChatChannelType;

public class ChatChannel_Scroll extends BaseChatChannelModule {
	private int clusterId; //专服id

	public int getClusterId() {
		return clusterId;
	}

	public void setClusterId(int clusterId) {
		this.clusterId = clusterId;
	}

	public ChatChannel_Scroll (int clusterId) {
		setClusterId(clusterId);
	}

	@Override
	protected int historySize() {
		return 0;
	}

	@Override
	protected ChatChannelType getChannelType() {
		return ChatChannelType.CHAT_SCROLL;
	}

	@Override
	protected String key() {
		return String.format("CHAT:SCROLL:%s:MSG", getClusterId());
	}

	@Override
	protected String keySub() {
		return String.format("CHAT:SCROLL:%s:SUB", getClusterId());
	}

	@Override
	protected void add(ChatMsg msg) {
		// 滚动消息不存历史
	}

	public static ChatChannel_Scroll get (int clusterId) {
		return new ChatChannel_Scroll(clusterId);
	}

}
